package cn.antho.org.service.impl;

import cn.antho.basic.service.impl.BaseServiceImpl;
import cn.antho.org.domain.Dictionarydetail;
import cn.antho.org.domain.Dictionarytype;
import cn.antho.org.mapper.DictionarytypeMapper;
import cn.antho.org.service.IDictionarytypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Transactional(readOnly = true, propagation = Propagation.SUPPORTS)
public class DictionarytypeServiceImpl extends BaseServiceImpl<Dictionarytype> implements IDictionarytypeService {

    @Autowired
    private DictionarytypeMapper dictionarytypeMapper;

    @Override
    public List<Dictionarydetail> findByType(Long id) {
        return dictionarytypeMapper.findByType(id);
    }
}
